import { IGridAbility } from '../ability';
import { GridActionType } from '../event';
import { IGridModel } from '../model';
import { IMDCtrlControllerParams } from './i-md-ctrl-controller-params';

/**
 * 表格部件控制器参数
 *
 * @export
 * @interface IWidgetsControllerParams
 */
export interface IGridControllerParams<T, A extends IGridAbility>
	extends IMDCtrlControllerParams<T | GridActionType, A> {
	/**
	 * 表格模型
	 *
	 * @type {IGridModel}
	 * @memberof IGridControllerParams
	 */
	model: IGridModel;

	/**
	 * 行激活模式
	 *
	 * @type {(0 | 1 | 2)}
	 * @memberof IGridControllerParams
	 */
	rowActiveMode: 0 | 1 | 2;

	/**
	 * 是否默认开启行编辑
	 *
	 * @type {boolean}
	 * @memberof IGridControllerParams
	 */
	defaultEnableRowEdit?: boolean;

    /**
     * 是否自动加载
     *
     * @type {boolean}
     * @memberof IGridControllerParams
     */
    autoLoad?: boolean;
}
